package com.csy.rabbit.admin;

import com.csy.rabbit.admin.clients.Impl.MerchantClientImpl;
import com.csy.rabbit.admin.clients.MerchantClient;
import com.csy.rabbit.admin.config.DefaultFeignConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

/**
 * @author CSY
 */
@SpringBootApplication
@EnableFeignClients(clients = MerchantClient.class,defaultConfiguration = DefaultFeignConfiguration.class )
public class RabbitAdminApplication {

    public static void main(String[] args) {
        SpringApplication.run(RabbitAdminApplication.class, args);
    }
    @Bean
    public MerchantClient merchantClient(){
        return new MerchantClientImpl();
    }

}
